import Layout from '@/layout'
import SettingEnv from '@/setting.env'

const activity = 'activity_'

export default {
  path: `${ SettingEnv.customRouter }/activity`,
  name: 'activity',
  component: Layout,
  alwaysShow: true,
  redirect: `${ SettingEnv.customRouter }/activity`,
  meta: {
    title: '活动',
    icon: 'el-icon-document'
  },
  children: [
    {
        path: 'activity_list',
        name: `${ activity }List`,
        component: () => import('@/views/activity/activityList'),
        meta: {
          title: '活动管理'
        }
      },
    {
      path: 'activity_add',
      name: `${ activity }Add`,
      component: () => import('@/views/activity/activityAdd'),
      meta: {
        title: '添加活动'
      }
    }
  ]
}
